package test3;

import java.util.ArrayList;

/**
 * Created by Claudiu-Florin FILIMON
 * Date: Aug 1, 2007
 * Time: 8:30:31 PM
 * Revision: 0
 */
public class ClassDefinition
{
    public static final int CLASS_VISIBILITY_PACKAGE = 0;
    public static final int CLASS_VISIBILITY_PUBLIC = 1;
    public static final int CLASS_VISIBILITY_PRIVATE = 2;

    boolean isInterface;
    String name;
    int visibility;
    boolean  isAbstract;
    private String packageName;
    private ArrayList importList;
    private String extendsName;
    private ArrayList implementsList;


    public ClassDefinition()
    {
        importList = new ArrayList();
        implementsList = new ArrayList();

        visibility = CLASS_VISIBILITY_PACKAGE;
    }

    public void setPackage(String name)
    {
        packageName = name;
    }    

    public void addImport(String path)
    {
        importList.add(path);
    }

    public void setExtends(String name)
    {
        extendsName = name;
    }

    public void addImplements(String name)
    {
        implementsList.add(name);
    }
}
